Crate salvo_core

source ·
Expand description

The core lib of Savlo web server framework. Read more: https://salvo.rs

Re-exports

pub use hyper;
pub use salvo_macros as macros;
pub use self::catcher::Catcher;
pub use self::catcher::CatcherImpl;
pub use self::extract::Extractible;
pub use self::handler::Handler;
pub use self::http::Request;
pub use self::http::Response;
pub use self::listener::Listener;
pub use self::routing::FlowCtrl;
pub use self::writer::Piece;
pub use self::writer::Writer;

Modules

addr module
Catcher tarit and it’s defalut implement CatcherImpl.
Extract is a feature to let you deserialize request to custom type.
Filesystem module
Handler is used for handle Request.
Http module
Listener trait and it’s implements.
A list of things that automatically imports into application use salvo_core.
Routing and filters Router can route http requests to different handlers.
testtest
Test utils for unit tests.
Writer trait and it’s implements.

Structs

Depot if for store temp data of current request. Each handler can read or write data to it.
Router struct is used for route request to different handlers.
HTTP Server
Service http request.

Enums

Errors that can happen inside salvo.

Functions

If you don’t want to include tokio in your project directly, you can use this function to run server.
If you don’t want to include tokio in your project directly, you can use this function to run server.

Type Definitions

BoxedError
Result type wich has salvo::Error as it’s error type.

Attribute Macros

handler is a pro macro to help create Handler from function or impl block easily.